package routers

import (
	"user_manager/internal/middlewares"

	"github.com/gin-gonic/gin"
)

func InitRouter(server *gin.Engine) {

    // add middleware   
    server.Use(gin.Recovery())
    // token 鉴权
    server.Use(middlewares.AuthMiddleware())

}